package studio.raptor.dispatcher.server.event;

import com.google.common.eventbus.Subscribe;

/**
 * @author jack
 * @since 1.0
 */
public class MultipleListener {

  public Integer lastInteger;
  public Long lastLong;

  @Subscribe
  public void listenInteger(Integer event) {
    lastInteger = event;
    System.out.println("event Integer:"+lastInteger);
  }

  @Subscribe
  public void listenLong(Long event) {
    lastLong = event;
    System.out.println("event Long:"+lastLong);
  }

  public Integer getLastInteger() {
    return lastInteger;
  }

  public Long getLastLong() {
    return lastLong;
  }

}
